import 'package:flutter/material.dart';
import 'package:im_base/public/components/layout_widgets.dart';
import 'package:tencent_im_sdk_plugin/models/v2_tim_conversation.dart';

class ConversationState {
  ///当前页面状态,初始为加载状态
  LoadStatus loadingStatus = LoadStatus.LOADING;

  ///最后一条会话标识,用户分页加载
  var nextSeq = '0';

  ///当前分页页码
  var pageSize = 100;

  ///是否有更多数据
  var hasMore = false;

  ///会话列表
  late List<V2TimConversation?> conversationList;

  TabController? tabBarController;

  ConversationState() {
    conversationList = List<V2TimConversation?>.empty(growable: true);
  }
}
